<!-- 登录login -->
<div id="login_form" style="background-color:#fff;display:none;">
    <div style="width:100%;margin-top: 35px;">
        <div style="float:left;margin:10px 25%;">
            <img src="__STATIC__/assets/images/LOGO.png" alt="" style="width:200px;height:45px;">
        </div>
        <div style="float:left;margin:20px -52%">
            <h1 style="font-size:30px;text-align:center;">莫愁商城</h1>
        </div>
    </div>
    <div style="clear:both"></div>
    <div style="width:100%;">
        <h1 style="text-align:center;font-size:16px;"> </h1>
    </div>
    <div style="width:100%;text-align:center;margin:60px auto;" id="login_go">
        <form action="" id="login_formpost" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:350px;" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <input type="password" style="width:350px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="width:350px;text-align:center;">
                <a style="float:left;font-size:16px;color:#007bbb;margin-left:11%;cursor:pointer" onclick="register()">快速注册</a>

                <a href="" style="float:right;font-size:16px;color:#007bbb;margin-right:-50px;">忘记密码？</a>

            </div>
        </form>
        <div style="width:100%;margin:48px auto;">
            <button type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_login()">登录</button>
        </div>
    </div>
    <!-- 切换注册 -->
    <div style="width:100%;text-align:center;margin:0px auto; display:none;" id="register_go">
        <form action="" id="formpost_register" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:340px;" id="code_phone_to" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <div style="width:422px;float:left;">
                    <input type="text" style="width:230px;" name="code" autocomplete="off" placeholder="请输入短信验证码">
                    <a style="color:#007bbb;cursor:pointer" id="go_code_to" onclick="codeto(10)">获取短信验证码</a>
                </div>
            </div>
            <div style="clear:both"></div>
            <div style="width:100%;">
                <input type="password" style="width:340px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="clear:both"></div>

        </form>
        <div style="width:100%;margin:32px auto 0 auto;">
            <div style="text-align: left;margin-left: 40px;margin-bottom: 10px;">
                <input onclick="xuanze1()" id="xuanze1" type="checkbox" value="值" name="名称" checked>
                <span>我已阅读并同意
                    <a target="view_window" href="http://www.mochoushop.com/index/login/agreement" style="color: #E83F44;">《莫愁用户服务协议》</a>
                </span>
            </div>
            <button id="zhuce1" type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_register_to()">注册</button>
            <h1 style="margin:20px auto 0 auto;">已有账号?
                <a style="color:#007bbb;cursor:pointer" onclick="login_to()">去登录</a>
            </h1>
        </div>


    </div>

</div>





<!-- 注册register -->
<div id="register_form" style="background-color:#fff;display:none;">
    <div style="width:100%;margin-top: 35px;">
        <div style="float:left;margin:10px 25%;">
            <img src="__STATIC__/assets/images/LOGO.png" alt="" style="width:200px;height:45px;">
        </div>
        <div style="float:left;margin:20px -52%">
            <h1 style="font-size:30px;text-align:center;">莫愁商城</h1>
        </div>
    </div>
    <div style="clear:both"></div>
    <div style="width:100%;">
        <h1 style="text-align:center;font-size:16px;"> </h1>
    </div>
    <div style="width:100%;text-align:center;margin:60px auto;display:none;" id="login_go_to">
        <form action="" id="login_formpost_to" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:350px;" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <input type="password" style="width:350px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="width:350px;text-align:center;">
                <a style="float:left;font-size:16px;color:#007bbb;margin-left:11%;cursor:pointer" onclick="register_res()">快速注册</a>

                <a href="" style="float:right;font-size:16px;color:#007bbb;margin-right:-50px;">忘记密码？</a>

            </div>
        </form>
        <div style="width:100%;margin:48px auto;">
            <button type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_login_to()">登录</button>
        </div>
    </div>
    <!-- 切换注册 -->
    <div style="width:100%;text-align:center;margin:0px auto; " id="register_go_to">
        <form action="" id="formpost_register_to" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:340px;" id="code_phone" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <div style="width:422px;float:left;">
                    <input type="text" style="width:230px;" name="code" autocomplete="off" placeholder="请输入短信验证码">
                    <a style="color:#007bbb;cursor:pointer" id="go_code" onclick="code(10)">获取短信验证码</a>
                </div>
                <!-- <div style="float:left;">
                            
                        </div> -->
            </div>
            <div style="width:100%;">
                <input type="password" style="width:340px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="clear:both"></div>

        </form>
        <div style="width:100%;margin:32px auto 0 auto;">
            <div style="text-align: left;margin-left: 40px;margin-bottom: 10px;">
                <input onclick="xuanze()" id="xuanze" type="checkbox" value="值" name="名称" checked>
                <span>我已阅读并同意
                    <a target="view_window" href="http://www.mochoushop.com/index/login/agreement" style="color: #E83F44;">《莫愁用户服务协议》</a>
                </span>
            </div>


            <button id="zhuce" type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_register()">注册</button>
            <h1 style="margin:20px auto 0 auto;">已有账号?
                <a style="color:#007bbb;cursor:pointer" onclick="login_res()">去登录</a>
            </h1>
        </div>





    </div>

</div>
<script>
    function xuanze() {
        var xuanze = $("#xuanze[type='checkbox']").is(':checked')

        if (xuanze == true) {
            $("#zhuce").removeClass('layui-btn-disabled')
            $("#zhuce").addClass('layui-btn-danger')
            $("#zhuce").attr("onclick", "go_register()")
        } else {
            $("#zhuce").removeClass('layui-btn-danger')
            $("#zhuce").addClass('layui-btn-disabled')
            $("#zhuce").attr("onclick", "0")
        }

    }

    function xuanze1() {
        var xuanze = $("#xuanze1[type='checkbox']").is(':checked')

        if (xuanze == true) {
            $("#zhuce1").removeClass('layui-btn-disabled')
            $("#zhuce1").addClass('layui-btn-danger')
            $("#zhuce1").attr("onclick", "go_register()")
        } else {
            $("#zhuce1").removeClass('layui-btn-danger')
            $("#zhuce1").addClass('layui-btn-disabled')
            $("#zhuce1").attr("onclick", "0")
        }

    }
</script>